<?php namespace Common\Model;
use Hdphp\Model\Model;
//货品列表
class GoodsList extends Model{
//指定表名
    protected $table = "goods_list";

//  添加
    public function store(){
        if(!$this->create()) return FALSE;
		$combine = implode(',', Q("post.combine"));
//		p($combine);
		$this->data['combine'] = $combine;
        $this->add();
        return TRUE;
    }
	public function edit(){
		$glid = Q("get.glid",0,'intval');
	    if(!$this->create()) return FALSE;
		$combine = implode(',', Q("post.combine"));
		$this->data['combine']=$combine;
//		p($this->data);exit;
		$this->where("glid={$glid}")->save();

	} 
}